<!DOCTYPE HTML>
<html>
<title>后台管理 | spinach</title>
<@h.head />
<link href="${path}/static/css/dpl-min.css" rel="stylesheet"
	type="text/css" />
<link href="${path}/static/css/bui-min.css" rel="stylesheet"
	type="text/css" />
<link href="${path}/static/css/main-min.css" rel="stylesheet"
	type="text/css" />
<body>
	<div class="header">
		<div class="dl-title"></div>
		<div class="dl-log">
			欢迎您，<span class="dl-log-user">${(user.nickName)!''}</span><a
				href="/logout" title="退出系统"
				class="dl-log-quit">[退出]</a>
		</div>
	</div>
	<div class="content">
		<div class="dl-main-nav">
			<div class="dl-inform">
				<div class="dl-inform-title">
					<s class="dl-inform-icon dl-up"></s>
				</div>
			</div>
			<ul id="J_Nav" class="nav-list ks-clear">
				<li class="nav-item dl-selected"><div
						class="nav-item-inner nav-home">系统管理</div></li>
			</ul>
		</div>
		<ul id="J_NavContent" class="dl-tab-conten">
		</ul>
	</div>
	<script type="text/javascript" src="${path}/static/js/bui-min.js"></script>
	<script type="text/javascript" src="${path}/static/js/main-min.js"></script>
	<script type="text/javascript" src="${path}/static/js/config-min.js"></script>
</body>
<script>
	$.ajax({
		async : false,
		type : 'get',
		url : "${path }/resources/currentResources.json",
		success : function(data) {
			var result = data;
			var firMenu = [];
			for (var i = 0; i < result.length; i++) {
				var menu = result[i];
				if (menu.pid == 0) {
					var secondMenu = [];
					for (var j = 0; j < result.length; j++) {
						var m = result[j];
						if (m.pid == menu.id) {
							var s = {
								id : m.id,
								text : m.name,
								href : "${path }"+m.url
							};
							secondMenu.push(s);
						}
					}
					var fir = {
						text : menu.name,
						items : secondMenu
					};
					firMenu.push(fir);
				}
			}
			var config = [ {
				id : '1',
				menu : firMenu
			} ];
			BUI.use('common/main', function() {
				new PageUtil.MainPage({
					modulesConfig : config
				});
			});
		}
	});
</script>
</html>